$OpenBSD: patch-cmake_UnixBuildTarget_cmake,v 1.4 2017/03/25 08:39:51 landry Exp $
--- cmake/UnixBuildTarget.cmake.orig	Thu Mar 23 16:18:04 2017
+++ cmake/UnixBuildTarget.cmake	Fri Mar 24 07:19:31 2017
@@ -78,7 +78,11 @@ install(FILES src/img/nomacs.svg DESTINATION share/pix
 #  translations
 install(FILES ${NOMACS_QM} DESTINATION share/nomacs/translations)
 #  manpage
-install(FILES Readme/nomacs.1 DESTINATION share/man/man1)
+if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+    install(FILES Readme/nomacs.1 DESTINATION man/man1)
+else()
+    install(FILES Readme/nomacs.1 DESTINATION share/man/man1)
+endif()
 #  appdata
 install(FILES nomacs.appdata.xml DESTINATION /usr/share/appdata/)
 
